<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8" isELIgnored="false"%>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>left</title>

        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
        <title>管理系统</title>
        <link rel="icon" href="${pageContext.request.contextPath}/favicon.ico" type="image/ico">
        <meta name="keywords" content="ttb">
        <meta name="description" content="ttb">
        <meta name="author" content="ttb">
        <link href="${pageContext.request.contextPath}/css/bootstrap.min.css" rel="stylesheet">
        <link href="${pageContext.request.contextPath}/js/bootstrap-select/bootstrap-select.min.css" rel="stylesheet">

        <link href="${pageContext.request.contextPath}/css/materialdesignicons.min.css" rel="stylesheet">
        <link href="${pageContext.request.contextPath}/css/style.min.css" rel="stylesheet">
<body>
<div class="lyear-layout-web">
    <div class="lyear-layout-container">
        <!--左侧导航-->
        <aside class="lyear-layout-sidebar">
            <!-- logo -->
            <div id="logo" class="sidebar-header">
                <a href="${pageContext.request.contextPath}/index"><img src="${pageContext.request.contextPath}/images/logo.png" title="ttb" alt="ttb"/></a>
            </div>
            <div class="lyear-layout-sidebar-scroll">

                <nav class="sidebar-main">
                    <ul class="nav nav-drawer">
                        <li class="nav-item active"> <a href="${pageContext.request.contextPath}/index"><i class="mdi mdi-home"></i> 后台首页</a> </li>
                        <li class="nav-item nav-item-has-subnav">
                            <a href="javascript:void(0)"><i class="mdi mdi-palette"></i>学生系统</a>
                            <ul class="nav nav-subnav">
                                <li> <a href="${pageContext.request.contextPath}/stu/toRegister">注册中心</a> </li>
                                <li> <a href="${pageContext.request.contextPath}/stu/getList">档案管理</a> </li>
                                <li> <a href="lyear_ui_grid.html">格栅</a> </li>
                                <li> <a href="lyear_ui_icons.html">图标</a> </li>
                            </ul>
                        </li>
                        <shiro:hasPermission name="teacher:*:*">
                        <li class="nav-item nav-item-has-subnav">
                            <a href="javascript:void(0)"><i class="mdi mdi-format-align-justify"></i>选课系统</a>
                            <ul class="nav nav-subnav">
                                <li> <a href="${pageContext.request.contextPath}/tea/toRegister">注册中心</a> </li>
                                <li> <a href="lyear_forms_radio.html">单选框</a> </li>
                                <li> <a href="lyear_forms_checkbox.html">复选框</a> </li>
                                <li> <a href="lyear_forms_switch.html">开关</a> </li>
                            </ul>
                        </li>
                        </shiro:hasPermission>
                        <shiro:hasPermission name="teacher:*:*">
                        <li class="nav-item nav-item-has-subnav">
                            <a href="javascript:void(0)"><i class="mdi mdi-file-outline"></i>课程安排</a>
                            <ul class="nav nav-subnav">
                                <li> <a href="lyear_pages_doc.html">文档列表</a> </li>
                                <li> <a href="lyear_pages_gallery.html">图库列表</a> </li>
                                <li> <a href="lyear_pages_config.html">网站配置</a> </li>
                                <li> <a href="lyear_pages_rabc.html">设置权限</a> </li>
                                <li> <a href="lyear_pages_add_doc.html">新增文档</a> </li>
                                <li> <a href="lyear_pages_guide.html">表单向导</a> </li>
                                <li> <a href="lyear_pages_login.html">登录页面</a> </li>
                                <li> <a href="lyear_pages_login_2.html">登录页面2</a> </li>
                                <li> <a href="lyear_pages_login_3.html">登录页面3</a> </li>
                                <li> <a href="lyear_pages_login_4.html">登录页面4</a> </li>
                                <li> <a href="lyear_pages_error.html">错误页面</a> </li>
                            </ul>
                        </li>
                        </shiro:hasPermission>
                        <shiro:hasRole name="admin">
                        <li class="nav-item nav-item-has-subnav">
                            <a href="javascript:void(0)"><i class="mdi mdi-language-javascript"></i>管理中心</a>
                            <ul class="nav nav-subnav">
                                <li> <a href="${pageContext.request.contextPath}/root/student">学生管理</a> </li>
                                <li> <a href="${pageContext.request.contextPath}/root/teacher">教师管理</a> </li>
                                <li> <a href="${pageContext.request.contextPath}/root/root">管理修改</a> </li>
                            </ul>
                        </li>
                        </shiro:hasRole>
                        <li class="nav-item nav-item-has-subnav">
                            <a href="javascript:void(0)"><i class="mdi mdi-menu"></i>更多功能</a>
                            <ul class="nav nav-subnav">
                                <li> <a href="#!">一级菜单</a> </li>
                                <li class="nav-item nav-item-has-subnav">
                                    <a href="#!">一级菜单</a>
                                    <ul class="nav nav-subnav">
                                        <li> <a href="#!">二级菜单</a> </li>
                                        <li class="nav-item nav-item-has-subnav">
                                            <a href="#!">二级菜单</a>
                                            <ul class="nav nav-subnav">
                                                <li> <a href="#!">三级菜单</a> </li>
                                                <li> <a href="#!">三级菜单</a> </li>
                                            </ul>
                                        </li>
                                    </ul>
                                </li>
                                <li> <a href="#!">一级菜单</a> </li>
                            </ul>
                        </li>
                    </ul>
                </nav>

                <div class="sidebar-footer">
                    <p class="copyright">Copyright &copy; 2019. <a target="_blank" href="http://lyear.itshubao.com">IT书包</a> All rights reserved.</p>
                </div>
            </div>

        </aside>
    </div>
</div>
</body>
</html>
